#ifndef ADMINFORM_H
#define ADMINFORM_H

#include <QWidget>

namespace Ui {
class AdminForm;
}

class AdminForm : public QWidget
{
    Q_OBJECT

public:
    explicit AdminForm(QWidget *parent = nullptr);
    ~AdminForm();
    void initIfm(int id, const QString &uname, int level);

private slots:
    void on_pushButton_Addc_clicked();

    void on_pushButton_Add_clicked();

    void on_pushButton_Close_clicked();

    void on_pushButton_Deletep_clicked();

    void on_pushButton_Deletec_clicked();


    void on_pushButton_Change_clicked();

    void on_pushButton_Addadmin_clicked();

    void on_pushButton_Deleteadmin_clicked();

private:
    Ui::AdminForm *ui;
    void initForm();

    int id;
    QString uname;
    int level;
};

#endif // ADMINFORM_H
